//
//  BBNavigationController.m
//  TanTanDemo
//
//  Created by wei1 on 2016/12/2.
//  Copyright © 2016年 qge. All rights reserved.
//

#import "BBNavigationController.h"
#import "UIImage+Color.h"
@interface BBNavigationController ()

@end

@implementation BBNavigationController
//设置导航条的颜色
+(void)initialize{
    //设置UINavigationBar的背景颜色
    UINavigationBar *bar = [UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[self]];
    [bar setBackgroundImage:[UIImage imageWithColor:[UIColor orangeColor]] forBarMetrics:UIBarMetricsDefault];
    //设置UINavigationItem的字体颜色
    NSMutableDictionary *textAttrDic = [[NSMutableDictionary alloc]init];
    textAttrDic[NSForegroundColorAttributeName] = [UIColor whiteColor];
    [bar setTitleTextAttributes:textAttrDic];
    
}

@end
